package com.bootdo.order.domain;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.Table;
import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

/**
 * 订单详情表
 *
 * @author chglee
 * @email 1992lcg@163.com
 * @date 2018-02-02 17:39:58
 */
@Entity
@Table(name = "biz_order_detail")
public class OrderDetailDO implements Serializable {
    private static final long serialVersionUID = 1L;

        //
        @Id
    @GeneratedValue
        @Column(name = "id")
    private Long id;
        //订单id
        @Column(name = "order_id")
    private Long orderId;
        //用户id
        @Column(name = "user_id")
    private Long userId;
        //商品id
        @Column(name = "item_id")
    private Long itemId;
        //单价
        @Column(name = "price")
    private BigDecimal price;
        //创建时间
        @Column(name = "gtm_create")
    private Date gtmCreate;
        //修改时间
        @Column(name = "gtm_modified")
    private Date gtmModified;
    
        /**
    * 设置：
    */
    public void setId(Long id) {
       this.id = id;
    }

    /**
    * 获取：
    */
    public Long getId() {
            return id;
        }
        /**
    * 设置：订单id
    */
    public void setOrderId(Long orderId) {
       this.orderId = orderId;
    }

    /**
    * 获取：订单id
    */
    public Long getOrderId() {
            return orderId;
        }
        /**
    * 设置：用户id
    */
    public void setUserId(Long userId) {
       this.userId = userId;
    }

    /**
    * 获取：用户id
    */
    public Long getUserId() {
            return userId;
        }
        /**
    * 设置：商品id
    */
    public void setItemId(Long itemId) {
       this.itemId = itemId;
    }

    /**
    * 获取：商品id
    */
    public Long getItemId() {
            return itemId;
        }
        /**
    * 设置：单价
    */
    public void setPrice(BigDecimal price) {
       this.price = price;
    }

    /**
    * 获取：单价
    */
    public BigDecimal getPrice() {
            return price;
        }
        /**
    * 设置：创建时间
    */
    public void setGtmCreate(Date gtmCreate) {
       this.gtmCreate = gtmCreate;
    }

    /**
    * 获取：创建时间
    */
    public Date getGtmCreate() {
            return gtmCreate;
        }
        /**
    * 设置：修改时间
    */
    public void setGtmModified(Date gtmModified) {
       this.gtmModified = gtmModified;
    }

    /**
    * 获取：修改时间
    */
    public Date getGtmModified() {
            return gtmModified;
        }
    }
